package com.atguigu.spzx.order.fallback;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spzx.order.api.OrderClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author LT
 * @create 2023-11-23-9:41
 */
@Component
@Slf4j
public class OrderClientFallback implements OrderClient {
    @Override
    public Result findOrderByOrderNo(Long orderNo) {
        log.error("远程查找订单失败");
        return Result.fail();
    }

    @Override
    public Result updatePayStatus(Long orderNo, Long payType, Long payStatus) {
        log.error("远程修改订单支付状态失败");
        return Result.fail();
    }
}
